<script setup>

const [model, modifiers] = defineModel({
    set(value) {
        if (modifiers.capitalizes) {
            return value.charAt(0).toUpperCase() + value.slice(1)
        }
        return value
    }
})
const emit = defineEmits(['dd'])
defineProps({
    greetingMessage: String
})
console.log(props.greetingMessage.value)
defineOptions({
    inheritAttrs: false
})
</script>

<template>
    <div>
        <span>Fallthrough attribute: {{ greetingMessage }}</span>
        <input type="text" v-model="model" v-bind="$attrs"/>
    </div>

</template>